package org.lanyu.springainovel.chat.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "知识库文档表")
@Data
@TableName("z_document")
public class KnowledgeDocument {
    public KnowledgeDocument() { super(); }
    @Schema(description = "文档ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @Schema(description = "文档标题")
    @TableField("title")
    private String title;
    @Schema(description = "文档内容")
    @TableField("content")
    private String content;
    @Schema(description = "知识库ID")
    @TableField("knowledge_base_id")
    private Long knowledgeBaseId;
    @Schema(description = "原始文件名称")
    @TableField("file_name")
    private String fileName;
    @Schema(description = "文件存储路径")
    @TableField("file_path")
    private String filePath;
    @Schema(description = "文件大小")
    @TableField("file_size")
    private Long fileSize;
    @Schema(description = "创建人ID")
    @TableField("created_by")
    private Long createdBy;
    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
    @Schema(description = "文档状态，状态，1正常，0删除，2处理中,3失败")
    @TableField("status")
    private Integer status;
}
